<template>
	<view class="content" v-html="htmlText">
	</view>
</template>

<script setup>
	import { onLoad } from '@dcloudio/uni-app'
	import { ref } from 'vue'
	const htmlText = ref('')
	onLoad(async ()=>{
		const res = await uni.request({
			method:'GET',
			url:'https://env-00jxhapj7v5l.dev-hz.cloudbasefunction.cn/utils/getDocument',
			data:{
				type: '用户协议'
			}
		})
		htmlText.value = res.data.data[0].content.html
	})
	
</script>

<style>
	.content{
		padding: 40rpx;
	}
</style>
